<script setup lang="ts">
import { ref } from 'vue'
import A from '@/components/A.vue'
import B from '@/components/B.vue'
let Flag = ref<boolean>(false)
const handleA = (value: boolean) => {
    console.log(value)
    Flag.value = value
}
</script>
<template>
    <div>
        <A @on-click="handleA"></A>
        <br>
        <B :flag="Flag"></B>
    </div>
</template>

<style scoped lang="scss">

</style>
